<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License.  You may obtain a copy of the License at
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->
<div class="dijitHidden">
  <div data-dojo-type="dijit/Dialog" data-dojo-props="title:'Edit Virtual Host'" id="editVirtualHostNodeDialog">
      <form id="editVirtualHostNodeForm" method="post" data-dojo-type="dijit/form/Form">
          <div id="editVirtualHostNode.allFields">
              <div id="editVirtualHostNode.contentPane">
                  <div class="editNoteBanner">NOTE: All changes will only take effect after Virtual Host Node restart.</div>
                  <div class="clear">
                      <div class="formLabel-labelCell tableContainer-labelCell">Name*:</div>
                      <div class="formLabel-controlCell tableContainer-valueCell">
                          <input type="text" id="editVirtualHostNode.name"
                                 data-dojo-type="dijit/form/ValidationTextBox"
                                 data-dojo-props="
                              name: 'name',
                              placeHolder: 'name',
                              required: true,
                              missingMessage: 'Name must be supplied',
                              disabled: true,
                              title: 'Enter virtual host name'" />
                      </div>
                  </div>
                  <div id="editVirtualHostNode.typeFields"></div>
                  <div class="clear">
                      <div class="formLabel-labelCell tableContainer-labelCell">Default Virtual Host Node: </div>
                      <div class="formLabel-controlCell tableContainer-valueCell">
                          <input type="checkbox" id="editVirtualHostNode.defaultVirtualHostNode" checked="checked"
                                 data-dojo-type="dijit/form/CheckBox"
                                 data-dojo-props="
                                    name: 'defaultVirtualHostNode',
                                    required: false,
                                    title: 'Make this virtual host node default. Clients connecting without providing a virtualhost will connect to the virtual host beneath this node.'" />
                      </div>
                  </div>

                  <div class="clear"></div>

                  <div data-dojo-type="dijit/TitlePane" data-dojo-props="title: 'Context variables',  open: false">
                      <div id="editVirtualHostNode.context" ></div>
                  </div>
              </div>
          </div>

        <div class="dijitDialogPaneActionBar qpidDialogPaneActionBar">
              <button data-dojo-type="dijit/form/Button" id="editVirtualHostNode.saveButton" data-dojo-props="label: 'Save'">Save</button>
              <button data-dojo-type="dijit/form/Button" id="editVirtualHostNode.cancelButton" data-dojo-props="label: 'Cancel'" ></button>
        </div>
      </form>
  </div>
</div>
